The Book of Dash by Adam Schroeder & Christian Mayer & Ann Marie Ward

The Book of Dash by Adam Schroeder & Christian Mayer & Ann Marie Ward

Author:Adam Schroeder & Christian Mayer & Ann Marie Ward [Adam Schroeder]
Language: eng
Format: epub
Publisher: No Starch Press
Published: 2022-10-25T00:00:00+00:00


6

INVESTMENT PORTFOLIO: BUILDING LARGER APPS

In this chapter we’ll show you how to create an investment portfolio app that explores how asset allocation affects a portfolio’s return. We’ll start with an introduction to asset allocation and why it’s an important concept in investing. We’ll then create a dashboard to explore a dataset detailing annual returns for cash, stocks, and bonds since 1929. The app will show you how interactive dashboards created with Dash really help bring data to life.

This app contains more lines of code than the app in Chapter 5. We’ll introduce ways to organize larger apps and offer some tips and tricks for maintaining and debugging large apps. We also cover some advanced callback techniques.

By the end of this chapter, you’ll know how to:

Structure a larger project to make it easier to maintain and debug

Include FontAwesome icons in your app

Use new Dash Core components: DataTable, Slider, and Markdown

Use new Dash Bootstrap components: Card, InputGroup, Table, Tabs, and Tooltip

Use Plotly Graph Objects to make color-coded figures



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.